<%--
  Created by IntelliJ IDEA.
  User: axing
  Date: 2019/11/14
  Time: 下午1:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.ArrayList" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>下架商品</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="bookmark"href="favicon.ico" />
    <style>
        .c_photo img{
            width: 200px;
            height: 200px;
        }
    </style>
</head>
<body>
<%@include file="header.jsp"%>
欢迎进入商品下架平台！<br>
    <table>
        <c:forEach items="${sessionScope.commodities}" var="c">
            <br><br><br>
            <div class="c_photo"><img src="${c.photo}">
                商品编号:${c.cid}
                商品剩余数量:${c.number}
                <br>商品价格:${c.price}
                商品名称:${c.c_name}<br>
            </div>
            <br>
            </a><a href="saveCommodityDelete.do?cid=${c.cid}"><input type="button" value="下架该商品"></a>
            </a><a href="adminCommodity.do"><input type="button" value="查看所有商品"></a>
        </c:forEach>
    </table>
</body>
</html>
